package com.xuecheng.web.exceptions;

import com.xuecheng.commons.enums.ErrorCode;
import lombok.Data;

@Data
public class BusinessException extends RuntimeException {

    //参数 错误码信息
    private ErrorCode errorCode;

    public BusinessException(ErrorCode errorCode) {

        this.errorCode = errorCode;
    }
}
